home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CChoreQuartet 1.0.1 / CCommanderChore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  753 b   |  48 lines  |  [TEXT/KAHL]

  1. /*
  2.  * CCommanderChore.h
  3.  *
  4.  */
  5.  
  6.  
  7.  
  8. /********************************/
  9.  
  10. #pragma once
  11.  
  12. /********************************/
  13.  
  14. #include "CSelfCancelableChore.h"
  15.  
  16. /********************************/
  17.  
  18. class CCommanderChore;
  19.  
  20. void doCommandViaIdleChore(long theCommand);
  21. CCommanderChore *doCommandContinuouslyViaIdleChore(long theCommand);
  22. void doCommandViaUrgentChore(long theCommand);
  23.  
  24. /********************************/
  25.  
  26.  
  27.  
  28. class CCommanderChore : public CSelfCancelableChore {
  29.     
  30. public:
  31.     
  32.     void            Perform(long *maxSleep);
  33.     
  34.     void            setCommand(long theCommand);
  35.     long            getCommand(void);
  36.     
  37.     void            setSendsContinuously(Boolean theSendsContinuously);
  38.     Boolean        getSendsContinuously(void);
  39.     
  40.     
  41. protected:
  42.     
  43.     long            itsCommand;
  44.     Boolean        sendsContinuously;
  45.     
  46.     
  47. } ;
  48.